#include <stdio.h>

int main(void) {
	int x, y, c;
	scanf("%d%d", &x, &y);
	c = x % y;
	printf("c=%d", c);

	return 0;
}
